#ifndef __TPFUNCTIONS_H__
#define __TPFUNCTIONS_H__

#include "ImageGray.h"

using namespace Torch;

// prototypes des fonctions définies dans TPFunctions.cc
char * setTitle(char* string,char* prefix);
Image * loadImage(bool verbose,char* image_filename);
void processImage(Image *source,char *image_filename,char *finalname);
void sobelDetect(Image *image_in,bool verbose,real threshold,char *name);
void cannyDetect(Image *image_in,bool verbose,real threshold,char *name);
int nbrePixels(Image *image_in,int color);
int nbreCommun(Image *image_ref,Image *image_grad);
bool pixelVoisins(Image *image_in,int line,int i);
bool pixelBords(Image *image_in,int line,int i);
void filtreDetect(Image *image_in,bool verbose,real threshold,char *suffix,int filter);
#endif  // __TPFUNCTIONS_H__
